﻿Public Class TimKiem

    Private Sub chkPhong_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles chkPhong.CheckedChanged
        If (chkPhong.Checked) Then
            cbxTK_TenPhong.Enabled = True
        Else
            cbxTK_TenPhong.Enabled = False
        End If
    End Sub

    Private Sub chkTK_LoaiPhong_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles chkTK_LoaiPhong.CheckedChanged
        If (chkTK_LoaiPhong.Checked) Then
            cbxTK_LoaiPhong.Enabled = True
        Else
            cbxTK_LoaiPhong.Enabled = False
        End If
    End Sub

    Private Sub chkTK_TinhTrang_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles chkTK_TinhTrang.CheckedChanged
        If (chkTK_TinhTrang.Checked) Then
            cbxTinhTrang.Enabled = True
        Else
            cbxTinhTrang.Enabled = False
        End If
    End Sub

    Private Sub chkNgayThuePhong_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles chkNgayThuePhong.CheckedChanged
        If (chkNgayThuePhong.Checked) Then
            dtpNgayThueTu.Enabled = True
            dtpNgayThueToi.Enabled = True
        Else
            dtpNgayThueTu.Enabled = False
            dtpNgayThueToi.Enabled = False
        End If
    End Sub

    Private Sub btnHuy_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnHuy.Click
        Me.Close()
    End Sub
End Class